package com.checker.jedis;

import redis.clients.jedis.Jedis;
import redis.clients.jedis.Transaction;

public class JedisTest {
    public static void main(String[] args) {
        Jedis jedis = new Jedis( "106.53.112.205",6380);
        System.out.println(jedis.ping());
        jedis.set("k1","v1");
        jedis.get("k1");
        System.out.println(jedis.keys("*"));

        Transaction transaction = jedis.multi();
        transaction.set("k3","v3");
        transaction.set("k4","v4");
        transaction.exec();
        //        transaction.discard();
        System.out.println(jedis.keys("*"));


    }
}
